package com.peace.hospital.entity.common;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

import java.sql.Date;
import java.util.List;


/**
 * <p>
 * 医院员工信息表
 * </p>
 *
 * @author xie
 * @since 2019-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Staffinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 员工编号
     */
    @TableId(value = "staid", type = IdType.AUTO)
    private Integer staid;

    /**
     * 科室id
     */
    private Integer depid;

    /**
     * 性别
     */
    private String stasex;

    /**
     * 员工年龄
     */
    private Integer staage;

    /**
     * 出生日期
     */
    private Date stabir;

    /**
     * 家庭地址
     */
    private String staaddress;

    /**
     * 电话
     */
    private String statel;

    /**
     * 数据库名称
     */
    private String stadbsource;

    /**
     * 员工姓名
     */
    private String staname;

    /**
     * 员工状态
     */
    private String stanstate;

    /**
     * 密码
     */
    private String stapassword;

    /**
     * 工号
     */
    private Integer stajobnumber;

    private Integer surplusnum;

    private String smiaoshul;


//    private Integer stajobnumber;


    @TableField(exist = false)
    private Department department;

    @TableField(exist = false)
    private List<Staffinfoandposition> staffinfoandpositionList;
////
//    @TableId(value = "depid", type = IdType.AUTO)
//    private Integer depids;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getStaid() {
        return staid;
    }

    public void setStaid(Integer staid) {
        this.staid = staid;
    }

    public Integer getDepid() {
        return depid;
    }

    public void setDepid(Integer depid) {
        this.depid = depid;
    }

    public String getStasex() {
        return stasex;
    }

    public void setStasex(String stasex) {
        this.stasex = stasex;
    }

    public Integer getStaage() {
        return staage;
    }

    public void setStaage(Integer staage) {
        this.staage = staage;
    }

    public Date getStabir() {
        return stabir;
    }

    public void setStabir(Date stabir) {
        this.stabir = stabir;
    }

    public String getStaaddress() {
        return staaddress;
    }

    public void setStaaddress(String staaddress) {
        this.staaddress = staaddress;
    }

    public String getStatel() {
        return statel;
    }

    public void setStatel(String statel) {
        this.statel = statel;
    }

    public String getStadbsource() {
        return stadbsource;
    }

    public void setStadbsource(String stadbsource) {
        this.stadbsource = stadbsource;
    }

    public String getStaname() {
        return staname;
    }

    public void setStaname(String staname) {
        this.staname = staname;
    }

    public String getStanstate() {
        return stanstate;
    }

    public void setStanstate(String stanstate) {
        this.stanstate = stanstate;
    }

    public String getStapassword() {
        return stapassword;
    }

    public void setStapassword(String stapassword) {
        this.stapassword = stapassword;
    }

    public Integer getStajobnumber() {
        return stajobnumber;
    }

    public void setStajobnumber(Integer stajobnumber) {
        this.stajobnumber = stajobnumber;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public List<Staffinfoandposition> getStaffinfoandpositionList() {
        return staffinfoandpositionList;
    }

    public void setStaffinfoandpositionList(List<Staffinfoandposition> staffinfoandpositionList) {
        this.staffinfoandpositionList = staffinfoandpositionList;
    }
}
